
#ifndef BASEVALIDATOR_HPP_
#define BASEVALIDATOR_HPP_

#include <string>
#include "parser.hpp"

class BaseValidator{

protected:
	Parser	parser;

public:
	BaseValidator();
	virtual ~BaseValidator();

	void validate();
	void setParser(std::string &file_parse, Logger *log);

	virtual void validateNumberOfFields(int lineCount, int fieldAmount) = 0;
	virtual void validateField(int lineCount, int fieldNumber, std::string field) = 0;
	virtual void validateElementAdding(int lineCount) = 0;
};

#endif /* BASEVALIDATOR_HPP_ */